import request from "../utils/request";

const baseUrl = "/api/front/blog";

export function googleJumpApi(parms) {
	return request({
		method: "post",
		baseURL: baseUrl + "/google/jump",
		timeout: 2000,
		headers: { "X-Custom-Header": "foobar" },
		data: parms,
	});
}

export function websiteSettingApi() {
	return request({
		method: "get",
		baseURL: baseUrl + "/setting/website/get",
		timeout: 2000,
		headers: { "X-Custom-Header": "foobar" },
	});
}

export function articleListApi(parms) {
	return request({
		method: "post",
		baseURL: baseUrl + "/article/query/list",
		timeout: 2000,
		headers: { "X-Custom-Header": "foobar" },
		data: parms,
	});
}

export function articleOneApi(id) {
	return request({
		method: "get",
		baseURL: baseUrl + "/article/query/one?id=" + id,
		timeout: 2000,
		headers: { "X-Custom-Header": "foobar" },
	});
}
